
function cache_loaded() { }
function cache_update() { window.applicationCache.swapCache(); }
function cache_error() { }

var e;

window.addEventListener("load", cache_loaded, false);
try {
	window.applicationCache.addEventListener("updateready", cache_update, false);
} catch (e) { }

try {
	window.applicationCache.addEventListener("error", cache_error, false);
} catch (e) { } 
